<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Tp5简易商城</title>

    <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
    <script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>

</head>
<body>
<div class="container">
    <h2><a href="{$Think.server.script_name}">Tp5简易商城 - 入门视频课</a></h2>
    <p>课程章节：</p>

    <table class="table table-bordered table-hover ">
        <thead>
        <tr>
            <th> ID</th>
            <th> 课程标题</th>
            <th> 评论</th>
            <th></th>
        </tr>
        </thead>

        <tbody>
        {volist name='show' id='user'}

        <tr>
            <th> {$user.id}</th>
            <td><a href="__ROOT__/index/index/view/id/{$user.id} ">{$user.title|mb_substr=0,20,'utf-8' }</a></td>
            <td> {$user.content|mb_substr=0,50,'utf-8'|default="这家伙很懒，什么也没留下"| }</td>
            <td>
                <button type="submit" id="btn" class="btn btn-primary">免费试听</button>
                <button type="submit" id="btn" class="btn btn-primary">立即购买</button>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {$show->render()}


</div>
<div>

    <footer class="bs-docs-footer " style="
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 100px;
    margin-bottom: 0px;
    color: #99979c;
    text-align: center;
    background-color: #2a2730">
        <div class="container">

            <p> Tp5简易商城 @Rinuo.com QQ：250285636 V1.0版 2017-11-06
            </p>


        </div>
    </footer>
</div>

</body>
</html>







<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Tp5简易商城</title>

    <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
    <script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>

</head>
<body>
<div  class="container">
    <h2><a href="{$Think.server.script_name}">Tp5简易商城 - 入门视频课</a></h2>
    <p>课程章节：</p>

    <table class="table table-bordered table-hover ">
        <thead>
        <tr  ><th > ID</th><th > 课程标题</th><th > 价格</th><th >  </th>
        </tr>
        </thead>

        <tbody>
        {volist name='show' id='user'}

        <tr  ><th> {$user.id} </th><td> <a href="__ROOT__/index/index/view/id/{$user.id} ">{$user.title|mb_substr=0,20,'utf-8' }</a></td><td> {$user.price}元</td><td>   <button type="submit" id="btn" class="btn btn-primary"  >免费试听</button>
            <a href="__ROOT__/alipay/alipayapi.php?WIDtotal_fee={$user.price}&WIDsubject={$user.title|mb_substr=0,20,'utf-8' }&WIDout_trade_no={$user.id}&WIDbody={$user.title|mb_substr=0,20,'utf-8' }&WIDshow_url=" id="btn" class="btn btn-primary" target="_blank"  >立即购买</a></td> </tr>
        {/volist}
        </tbody>
    </table>
    {$show->render()}




</div><div>

    <footer class="bs-docs-footer " style="
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 100px;
    margin-bottom: 0px;
    color: #99979c;
    text-align: center;
    background-color: #2a2730">
        <div class="container">

            <p> Tp5简易商城 @Rinuo.com QQ：250285636 V1.0版 2017-11-06
            </p>


        </div>
    </footer>
</div>

</body>
</html>